package com.atguigu.daijia.driver.service;

import com.atguigu.daijia.model.vo.driver.DriverLoginVo;

public interface DriverService {

    /**
     * 司机端小程序授权登录
     * @param code
     * @return
     */
    String login(String code);

    /**
     * 获取司机登录信息
     * @param driverId
     * @return
     */
    DriverLoginVo getDriverLoginInfo(Long driverId);

    /**
     * 判断司机当日是否进行过人脸识别
     * @param driverId
     * @return
     */
    Boolean isFaceRecognition(Long driverId);

    /**
     * 开始接单服务
     * @param driverId
     * @return
     */
    Boolean startServuce(Long driverId);

    /**
     * 停止接单服务
     * @param driverId
     * @return
     */
    Boolean stopService(Long driverId);
}
